home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
clue.lha
/
clue
/
doc
/
clue.tex
/
node127_mn.html
< prev
next >
Wrap
Text File
|
1989-07-12
|
3KB
|
71 lines
<H3><A ID="SECTION003711100000000000000"><tex2html_anchor_invisible_mark></A> <A ID="ch:before-actions"><tex2html_anchor_mark></A><BR>
Before Actions
</H3><#5031#>
<P>
A <#1529#><B>before action</B><#1529#><A ID="1530"><tex2html_anchor_invisible_mark></A><A ID="1531"><tex2html_anchor_invisible_mark></A>
<A ID="1532"><tex2html_anchor_invisible_mark></A> of a <#1533#><TT>contact-display</TT><#1533#> is an action which is called
when an event is dispatched to a contact, but before any other contact input
processing is performed. Before actions are useful for implementing
various kinds of application-dependent event preprocessing. For example, an
application could define a before action for the <#1534#><TT>contact</TT><#1534#> class that will
record every event in a log file.
<P>
Associated with a <#1535#><TT>contact-display</TT><#1535#> is a list of before actions.
Each event received by a <#1536#><TT>contact-display</TT><#1536#> is compared with every element of
its before actions list. If <#1537#><TT>c</TT><#1537#> is the class for which the before
action is defined, and if <#1538#><TT>contact</TT><#1538#> is the contact instance to which the
event has been dispatched, then the before action is called if <#1539#><TT>(typep
contact c)</TT><#1539#> is true.
<P>
The following functions control the before actions of a <#1540#><TT>contact-display</TT><#1540#>.
<P>
<#4304#><FONT SIZE="+1"><#1541#><B>add-before-action Function, contact-display</B><#1541#></FONT><#4304#>
<A ID="1542"><tex2html_anchor_invisible_mark></A>
<A ID="1543"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline9980#
</DIV>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline9981#
</DIV>
<P>
<#4664#>
<#4307#><FONT SIZE="+1"><#1560#><B>delete-before-action Function, contact-display</B><#1560#></FONT><#4307#>
<A ID="1561"><tex2html_anchor_invisible_mark></A>
<A ID="1562"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline9982#
</DIV><#4664#>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline9985#
</DIV>
<P>
<#4310#><FONT SIZE="+1"><#1575#><B>before-actions Function, contact-display</B><#1575#></FONT><#4310#>
<A ID="1576"><tex2html_anchor_invisible_mark></A>
<A ID="1577"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline9986#
</DIV>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline9987#
</DIV>
<P>
=0 <#5041#>=0 <#5045#>